##
# makefile - Created by Timothy Morey on 4/11/2012
#
# This is the makefile for the nvn-display application.
#

#HACK: getting errors when using LD=ld, so overriding it with gcc
LD=gcc

CFLAGS += -MD -MP -g -I../libnvn -I/usr/include/libxml2
LDFLAGS += -g -L../lib -lnvn

SRC = $(wildcard *.c)

nvn-display: $(SRC:%.c=%.o)
	$(LD) $(LDFLAGS) -o $@ $^

-include $(SRC:%.c=%.d)

clean:
	rm -v -f nvn-display *.d *.o *~ *.gch

install: nvn-display
	cp nvn-display ../bin
